//
//  SeeListTableVIewCell.m
//  Zaker
//
//  Created by lirui on 16/3/11.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "SeeListTableVIewCell.h"

@implementation SeeListTableVIewCell

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [ super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.title = [[ BaseLabel alloc] init];
        // _title.backgroundColor = [ UIColor greenColor];
        [self.contentView addSubview:_title];
        
        
        self.imgView =[[ UIImageView alloc] init];
        // _imgView.backgroundColor =[ UIColor redColor];
        [self.contentView addSubview:_imgView];
        
        self.detail = [[ BaseLabel alloc] init];
        // _detail.backgroundColor = [UIColor yellowColor];
        [self.contentView addSubview:_detail];
        _detail.font = [ UIFont systemFontOfSize:13];
        _detail.numberOfLines = 2;
        self.bofang = [[UIImageView alloc] init];
        [self.contentView addSubview:_bofang];
        _bofang.image = [ UIImage imageNamed:@"iconfont-zhibo"];
          }
    return  self;
}
-(void)layoutSubviews
{    [super layoutSubviews];
    _imgView.frame = CGRectMake( WIDTH*10, HEIGHT*10, WIDTH *100, HEIGHT *100 );
    _title.frame= CGRectMake(_imgView.frame.size.width + 20, _imgView.frame.origin.y, WIDTH * 375, HEIGHT * 40);
    _detail.frame = CGRectMake(_title.frame.origin.x, _title.frame.origin.y +_title.frame.size.height , WIDTH *200, HEIGHT *50);
    _bofang.frame = CGRectMake(0, 0, 30 * WIDTH, 30 * HEIGHT);
    _bofang.center = _imgView.center;
}

@end
